#alert-overlay, #ok-overlay
{
    z-index: 600;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
}

.alert-window, .ok-window
{
    width: 50%;
    padding: 100px;
    margin: 120px auto auto;

    background-color: #fcfcf0;
    border: 1px solid #000;
    border-radius: 10px;
}

.alert-window .text-box, .ok-window .text-box
{
    display: block;
    width: 80%;
    padding: 0;
    margin: 40px 10% 0 10%;
    text-align: center;
    color: black;
}

.alert-window button, .ok-window button
{
    margin: auto;
    width: 100px;
    height: 40px;
    display: block;
    border: 0;
    border-radius: 5px;
    background-color: rgba(222, 222, 222, 0.5);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

.alert-window button:hover, .ok-window button:hover
{
    background-color: rgba(222, 222, 222, 0.9);
}

.alert-window button:active, .ok-window button:active
{
    background-color: rgba(222, 222, 222, 0.7);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.alert-icon, .ok-icon
{
    position: relative;
    width: 100px;
    height: 100px;
    padding: 10px;
    margin: auto;
    display: block;
    align-items: center;
    border-radius: 50%;
    background-size: 64px;
    background-repeat: no-repeat;
    background-position: center;
}

.alert-icon
{
    background-color: rgba(255, 0, 0, 1);
    background-image: url("../icon/close.svg");
    animation: red-shining 2s ease-in-out infinite;
}

.ok-icon
{
    background-color: rgba(0, 255, 0, 1);
    background-image: url("../icon/ok.svg");
    animation: green-shining 2s ease-in-out infinite;
}

@keyframes red-shining {
    0%{
        box-shadow: 0 0 20px rgba(255, 0, 0, 1);
    }
    50%{
        box-shadow: 0 0 40px rgba(255, 0, 0, 1);
    }
    100%{
        box-shadow: 0 0 20px rgba(255, 0, 0, 1);
    }
}

@keyframes green-shining {
    0%{
        box-shadow: 0 0 20px rgba(0, 255, 0, 1);
    }
    50%{
        box-shadow: 0 0 40px rgba(0, 255, 0, 1);
    }
    100%{
        box-shadow: 0 0 20px rgba(0, 255, 0, 1);
    }
}